package com.tuanzi.loan.business.service.galaxycard;

import java.util.List;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.entity.galaxycard.GalaxyCardPromoteUserChannel;
import com.tuanzi.loan.core.service.BaseAuditService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardPromoteUserRelateChannelRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardPromoteUserRelateChannelResponse;

/**
 * 银河黑卡外推用户渠道关联管理Service
 * @author chenweijun 2018/02/01
 *
 */
public interface GalaxyCardPromoteUserRelateChannelService extends BaseAuditService<GalaxyCardPromoteUserChannel, Long> {
	
	
	/**
	 * 查询用户渠道关联列表
	 * @param searchRequest
	 * @param pageable
	 * @return
	 */
	Page<GalaxyCardPromoteUserRelateChannelResponse> list(PageSearcher<GalaxyCardPromoteUserRelateChannelRequest> pageSearcher);
	
	
	/**
	 * 根据用户ID、渠道号查询关联数据
	 * @param userId
	 * @param channelCode
	 * @return
	 */
	GalaxyCardPromoteUserChannel findByUserIdAndChannelCode(String userId, Integer channelCode);

	
	/**
	 * 根据用户ID查询关联渠道列表
	 * @param userId
	 * @return
	 */
	List<Integer> findChannelCodeListByUserId(String userId);
	

}
